package day0711;

import java.util.Arrays;

public class Test2 {
    public static void main(String[] args) {
        int[] a2={4, 5, 6, 9};
        //a2[1]    a2[2]
        a2[1] = a2[1]  +  a2[2];  //a2[1]  11
        a2[2]=  a2[1]  -  a2[2];     //a2[2] 5
        a2[1]=  a2[1]  -  a2[2];  //a2[1]  11
        System.out.println(Arrays.toString(a2));



        /*int temp=a2[2];
        a2[2]=a2[1];
        a2[1]=temp;

        System.out.println(Arrays.toString(a2));*/

        //a2[1]    a2[2]







        int a=3;
        int b=9;
        //a+b  12
        a=a+b;  //a=12
        b=a-b;  //b=3
        a=a-b;
        System.out.println(a + ","+  b);












    }
}
